<%@ page contentType="text/html;charset=utf-8"  language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<ul class="nav nav-list" style="margin-bottom:20px">
  <li class="nav-header">查询管理</li>
  <li id="sidebar-item-index">
    <a href="<c:url value="/manage/index.do"/>">数据概览</a>
  </li>
  <li id="sidebar-item-signin">
    <a href="<c:url value="/manage/signin.do"/>">签到查询</a>
  </li>
  <li id="sidebar-item-signout">
    <a href="<c:url value="/manage/signout.do"/>">签退查询</a>
  </li>
</ul>

<script>
  <%
  String sidebarItem = null;
  try{
    sidebarItem = (String)(request.getAttribute("sidebar_item"));
    }catch(Exception e){}
  %>
  var sidebarItem = document.getElementById("sidebar-item-<%=sidebarItem%>");
  if(sidebarItem != null){
    sidebarItem.className="active";
  }   
</script>
